/*
 * Copyright 2018-10-1 20:47:06 The JA-SIG Collaborative. All rights reserved.
 * distributed with thi file and available online at
 */
package com.lap.scp.erp.query;

import org.apache.commons.lang3.builder.ReflectionToStringBuilder;

import com.lap.scd.commons.domain.QueryVO;

/**
 * <pre>
 *  其他成本 查询条件,专门提供查询使用，请勿当成提交数据保存使用，
 *	如果有必要新增额外领域模型数据，可以单独创建，请勿使用查询对象做提交数据保存
 * </pre>
 * 
 * @author 劳水生 Exp
 * @Date 2018-10-1 20:47:06
 * @since 2.0.0
 */
public class PaymentQueryVO extends QueryVO {
	private static final long serialVersionUID = -9078126953966421880L;
	/**
	 * 根据合同ID查询
	 */
	private Integer qcontractId;
	/**
	 * 开始日期
	 */
	private String qbuyDate;
	/**
	 * 查询人的名称
	 */
	private String qname;
	/**
	 * 类型
	 */
	private Integer type;
	/**
	 * 开始日期
	 */
	private String qbeginBuyDate;
	/**
	 * 结束日期
	 */
	private String qendBuyDate;

	public Integer getQcontractId() {
		return qcontractId;
	}

	public void setQcontractId(Integer qcontractId) {
		this.qcontractId = qcontractId;
	}

	public String getQbuyDate() {
		return qbuyDate;
	}

	public void setQbuyDate(String qbuyDate) {
		if (qbuyDate != null && !"".equals(qbuyDate)) {
			this.qbeginBuyDate = qbuyDate + "-01 00:00:00";
			this.qendBuyDate = qbuyDate + "-31 23:59:59";
		}
		this.qbuyDate = qbuyDate;
	}

	public String getQname() {
		return qname;
	}

	public void setQname(String qname) {
		this.qname = qname;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getQbeginBuyDate() {
		return qbeginBuyDate;
	}

	public void setQbeginBuyDate(String qbeginBuyDate) {
		this.qbeginBuyDate = qbeginBuyDate;
	}

	public String getQendBuyDate() {
		return qendBuyDate;
	}

	public void setQendBuyDate(String qendBuyDate) {
		this.qendBuyDate = qendBuyDate;
	}

	@Override
	public String toString() {
		return ReflectionToStringBuilder.toString(this);
	}

}
